package com.ss.android.article.browser.view.multiselect.viewholder.a;

import android.support.v7.widget.RecyclerView.ViewHolder;
import android.view.View;

import com.ss.android.article.browser.view.multiselect.g;
import com.ss.android.article.browser.view.multiselect.viewholder.aa;

import org.jetbrains.annotations.NotNull;

public final class b extends com.ss.android.article.browser.view.multiselect.viewholder.b {
    @NotNull
    private final aa a;
    @NotNull
    private final View d;
    @NotNull
    private final View e;
    @NotNull
    private final View f;

    public b(@NotNull View root, @NotNull ViewHolder viewHolder, @NotNull com.ss.android.article.browser.view.multiselect.a adapter, @NotNull aa animationInterface, @NotNull View selectViewContainer, @NotNull View selectView, @NotNull View unSelectView) {
        super(root, viewHolder, adapter);
        this.a = animationInterface;
        this.d = selectViewContainer;
        this.e = selectView;
        this.f = unSelectView;
    }

    public final void a(int arg4) {
        int v2 = View.INVISIBLE;
        if (arg4 == com.ss.android.article.browser.view.multiselect.e.a()) {
            this.e.setVisibility(v2);
            this.f.setVisibility(View.VISIBLE);
        } else if (arg4 == com.ss.android.article.browser.view.multiselect.e.b()) {
            this.e.setVisibility(View.VISIBLE);
            this.f.setVisibility(v2);
        }
    }

    public final void b(int arg4) {
        View itemView;
        aa v0;
        if (arg4 == g.a()) {
            this.d.setVisibility(View.GONE);
        } else if (arg4 == g.b()) {
            v0 = this.a;
            itemView = this.itemView;
            v0.a(itemView, this.d);
        } else if (arg4 == g.c()) {
            this.d.setVisibility(View.VISIBLE);
        } else if (arg4 == g.d()) {
            v0 = this.a;
            itemView = this.itemView;
            v0.b(itemView, this.d);
        }
    }
}

